<?php

use yii\helpers\Html;
use yii\widgets\ActiveForm;

/* @var $this yii\web\View */
/* @var $model app\modules\admin\models\Paymentmember */
/* @var $form yii\widgets\ActiveForm */
?>

<div class="paymentmember-form">

    <?php $form = ActiveForm::begin(); ?>

    <!-- <?// $form->field($model, 'identifier_id')->textInput(['maxlength' => true]) ?> -->

    <?= $form->field($model, 'mchid_list')->textInput(['maxlength' => true]) ?>

    <?= $form->field($model, 'card_id')->textInput(['maxlength' => true]) ?>

    <?= $form->field($model, 'least_cost')->textInput(['maxlength' => true]) ?>

    <?= $form->field($model, 'max_cost')->textInput(['maxlength' => true]) ?>

    <?= $form->field($model, 'jump_url')->textInput(['maxlength' => true]) ?>

    <div>
     <label>规则开始时间</label>
         <?php echo \kartik\datetime\DateTimePicker::widget([
            'model' => $model,
            'name' => 'begin_time',
            'language' => 'zh-CN',
            'value'=>Yii::$app->request->get('begin_time'),
            'pickerButton'=>false,
            'pluginOptions' => [
                'autoclose' =>true,
                'format' => 'yyyy-mm-dd',
                'minView' => 2
            ]
        ]);
       ?>
        <br/>
    </div>

    <div>
    <label>规则结束时间</label>
        <?php echo \kartik\datetime\DateTimePicker::widget([
            'model' => $model,
            'name' => 'end_time',
            'language' => 'zh-CN',
            'value'=>Yii::$app->request->get('end_time'),
            'pickerButton'=>false,
            'pluginOptions' => [
                'autoclose' =>true,
                'format' => 'yyyy-mm-dd',
                'minView' => 2
            ]
        ]);
       ?>
        <br/>
    </div>
    
    <div class="form-group">
        <?= Html::submitButton('提交', ['class' => 'btn btn-success']) ?>
    </div>

    <?php ActiveForm::end(); ?>

</div>
